package com.fr.report.write;

import com.fr.base.Inter;
import java.io.Serializable;

public class BindDataConsistency
  implements Cloneable, Serializable
{
  private String reportName;
  private String cellName;
  private int rowIndex;
  private int columnIndex;
  private Object reason;
  private int selectedReportIndex;

  public BindDataConsistency(String paramString, int paramInt1, int paramInt2, Object paramObject)
  {
    this(null, paramString, paramInt1, paramInt2, paramObject);
  }

  public BindDataConsistency(String paramString1, String paramString2, int paramInt1, int paramInt2, Object paramObject)
  {
    setReportName(paramString1);
    setCellName(paramString2);
    setRowIndex(paramInt2);
    setColumnIndex(paramInt1);
    setReason(paramObject);
  }

  public void setReportName(String paramString)
  {
    this.reportName = paramString;
  }

  public String getReportName()
  {
    return this.reportName;
  }

  public void setCellName(String paramString)
  {
    this.cellName = paramString;
  }

  public String getCellName()
  {
    return this.cellName;
  }

  public void setRowIndex(int paramInt)
  {
    this.rowIndex = paramInt;
  }

  public int getRowIndex()
  {
    return this.rowIndex;
  }

  public void setColumnIndex(int paramInt)
  {
    this.columnIndex = paramInt;
  }

  public int getColumnIndex()
  {
    return this.columnIndex;
  }

  public void setReason(Object paramObject)
  {
    this.reason = paramObject;
  }

  public Object getReason()
  {
    return this.reason;
  }

  public void setSelectedReportIndex(int paramInt)
  {
    this.selectedReportIndex = paramInt;
  }

  public int getSelectedReportIndex()
  {
    return this.selectedReportIndex;
  }

  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer("[");
    localStringBuffer.append(Inter.getLocText("Error"));
    localStringBuffer.append("]-");
    if (getReportName() != null)
    {
      localStringBuffer.append(getReportName());
      localStringBuffer.append("-");
    }
    localStringBuffer.append(getCellName());
    localStringBuffer.append("-");
    localStringBuffer.append(getReason());
    return localStringBuffer.toString();
  }

  public Object clone()
    throws CloneNotSupportedException
  {
    return super.clone();
  }
}